<?php
namespace Common\Model;
use Think\Model;
	
class  AdminnavModel extends  Model{
	private $table = 'adminnav'; //指定表名
	
	public function getAllNav(){
		$id = isset( $_POST['id'] ) ? $_POST['id'] : 0 ;
		$data = $this->field('id,text,state,iconCls,url')->where(array('nid'=>$id))->select();
		return $data;
//		var_dump($this->getLastSql());
	}
	
}

